package org.pas.fb2.tag;

public class FictionBookTag extends Tag {
    static final String NAME = "FictionBook";

    FictionBookTag(Tag parent) {
        super(parent);
    }

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Tag onChild(String name) {
        if (BodyTag.NAME.equals(name)) {
            return new BodyTag(this);
        }
        return super.onChild(name);
    }
}
